package com.cucn.oss.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;

/**
 * @author KouChaoJie
 * @since: 2021/9/28 15:07
 */
public interface OssService {
    /**
     * 上传头像到oss
     *
     * @param file 上传的头像文件
     * @return 上传到oss图片路径
     * @throws FileNotFoundException 空文件异常
     */
    String uploadFileAvatar(MultipartFile file) throws FileNotFoundException;
}
